package com.hst.capacity.domain.model.response.setting.price;

import com.hst.capacity.domain.model.entity.setting.price.SpecialCarPriceEntity;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class SpecialCarSearchVO {

    private String idPrice;
    private String regionCode;
    private String idServiceType;
    private Integer status;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private String createBy;

    private int idVehicleType;
    private Float servicePrice;
    private Integer maxServiceMileage;
    private Integer secondServiceMileage;
    private Integer thirdServiceMileage;
    private Integer fourthServiceMileage;
    private Float exceedingMileagePrice;
    private Float secondMileagePrice;
    private Float thirdMileagePrice;
    private Float fourthMileagePrice;
    private Integer maxWaitingTime;
    private Integer maxServiceTime;
    private Float exceedingTimePrice;
    private Float waitingTimePrice;
    private String nightServiceTime;
    private Float nightServiceAddition;
    private Float nightServicePrice;
    private String morningPeakTime;
    private Float morningPeakAddition;
    private Float morningPeakPrice;
    private String eveningPeakTime;
    private Float eveningPeakAddition;
    private Float eveningPeakPrice;
    private String memo;

    public SpecialCarSearchVO(SpecialCarPriceEntity priceEntity) {
        this.idPrice = priceEntity.getIdServicePriceType();
        this.regionCode = priceEntity.getRegionCode();

        this.idServiceType= priceEntity.getIdServiceType();
        //this.status = priceEntity.gets;
        this.createTime = priceEntity.getCreateTime();
        this.updateTime = priceEntity.getUpdateTime();
        this.createBy = priceEntity.getCreateBy();

        this.idVehicleType = priceEntity.getIdVehicleType();
        this.servicePrice = priceEntity.getServicePrice();
        this.maxServiceMileage = priceEntity.getMaxServiceMileage();
        this.secondServiceMileage = priceEntity.getSecondServiceMileage();
        this.thirdServiceMileage = priceEntity.getThirdServiceMileage();
        this.fourthServiceMileage = priceEntity.getFourthServiceMileage();
        this.exceedingMileagePrice = priceEntity.getExceedingMileagePrice();
        this.secondMileagePrice = priceEntity.getSecondMileagePrice();
        this.thirdMileagePrice = priceEntity.getThirdMileagePrice();
        this.fourthMileagePrice = priceEntity.getFourthMileagePrice();
        this.maxWaitingTime = priceEntity.getMaxWaitingTime();
        this.maxServiceTime = priceEntity.getMaxServiceTime();
        this.exceedingTimePrice = priceEntity.getExceedingTimePrice();
        this.waitingTimePrice = priceEntity.getWaitingTimePrice();
        this.nightServiceTime = priceEntity.getNightServiceTime();
        this.nightServiceAddition = priceEntity.getNightServiceAddition();
        this.nightServicePrice = priceEntity.getNightServicePrice();
        this.morningPeakTime = priceEntity.getMorningPeakTime();
        this.morningPeakAddition = priceEntity.getMorningPeakAddition();
        this.morningPeakPrice = priceEntity.getMorningPeakPrice();
        this.eveningPeakTime = priceEntity.getEveningPeakTime();
        this.eveningPeakAddition = priceEntity.getEveningPeakAddition();
        this.eveningPeakPrice = priceEntity.getEveningPeakPrice();
        this.memo = priceEntity.getMemo();
    }

}
